Skip to content

test: Health/Scrap/Banner/UserStamp/ServerProfile 컨트롤러 @WebMvcTest 추가 - #227

Merged
unam98 merged 1 commit into
devfrom
tests/health-scrap-banner-userstamp-profile-controller-tests
Aug 6, 2026
Merged

test: Health/Scrap/Banner/UserStamp/ServerProfile 컨트롤러 @WebMvcTest 추가#227
unam98 merged 1 commit into
devfrom
tests/health-scrap-banner-userstamp-profile-controller-tests

Conversation

@unam98

@unam98 unam98 commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

작업 배경

변경 사항

영역 내용
health/controller/HealthControllerTest.java (신규) 건강 데이터 CRUD 4개 엔드포인트 (9 테스트)
scrap/controller/ScrapControllerTest.java (신규) 스크랩 생성/삭제/조회 2개 엔드포인트 (6 테스트)
banner/controller/BannerControllerTest.java (신규) 배너 조회 (2 테스트)
user/controller/UserStampControllerTest.java (신규) 유저 스탬프 조회 (1 테스트)
common/controller/ServerProfileControllerTest.java (신규) 활성 프로파일 조회 (1 테스트)

영향 범위

  • 테스트 전용 변경, 프로덕션 코드 변경 없음.
  • 컨트롤러 레이어 자체 로직 변경 없음.

검증 매트릭스

영향 범위 테스트 코드
POST /api/record/{id}/health 정상 생성 정상_생성
POST .../health 필수값 없으면 400 필수값_없음
POST .../health 소유권 없으면 403 소유권_없음
POST .../health 중복이면 409 이미_존재
GET .../health 정상 조회 정상_조회
GET /api/health/summary 정상 조회 정상_조회
GET /api/health/summary 파라미터 없으면 400 파라미터_없음
DELETE .../health 정상 삭제 정상_삭제
POST /api/scrap scrapTF=true 정상 생성 스크랩_생성
POST /api/scrap scrapTF=false 정상 삭제 스크랩_삭제
POST /api/scrap publicCourseId 없으면 400 코스아이디_없음
POST /api/scrap scrapTF 없으면 400 스크랩여부_없음
GET /api/scrap/user 정상 조회 정상_조회
GET /api/banner 정상 조회 정상_조회
GET /api/banner 빈 목록 배너_없음
GET /api/stamp/user 정상 조회 정상_조회
GET /profile 활성 프로파일 반환 활성_프로파일_반환

Test Plan

  • 배치 5개 컨트롤러 테스트 17/17 통과
  • 로컬 postgres/redis 기동 후 ./gradlew test 전체 213/213 통과

🤖 Generated with Claude Code

CourseController 파일럿에 이어 나머지 단순 컨트롤러들의 라우팅/@Valid 검증/
@userid 인증/예외→HTTP 상태코드 매핑을 슬라이스 테스트로 검증한다.
@unam98 unam98 self-assigned this Aug 6, 2026
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@unam98, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 50 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: eac54f56-0f40-4f00-8a98-b1922a35e5c4

📥 Commits

Reviewing files that changed from the base of the PR and between 105bda3 and de9afde.

📒 Files selected for processing (5)
  • src/test/java/org/runnect/server/banner/controller/BannerControllerTest.java
  • src/test/java/org/runnect/server/common/controller/ServerProfileControllerTest.java
  • src/test/java/org/runnect/server/health/controller/HealthControllerTest.java
  • src/test/java/org/runnect/server/scrap/controller/ScrapControllerTest.java
  • src/test/java/org/runnect/server/user/controller/UserStampControllerTest.java

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@unam98
unam98 merged commit a112678 into dev Aug 6, 2026
2 checks passed
@unam98
unam98 deleted the tests/health-scrap-banner-userstamp-profile-controller-tests branch August 6, 2026 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants